package com.oracle.sbdb;

import java.io.IOException;

import com.oracle.sbdb.dao.BugInfoDao;
import com.oracle.sbdb.model.BugInfo;

public class MyBatisDemo {
	public static void main(String[] args) throws IOException {
//		DemoDao dao = new DemoDao();
//		Demo res = dao.selectbyID(5);
//		System.out.println(res.getName());
		BugInfoDao dao = new BugInfoDao();
		BugInfo res = dao.selectbyId(0);
		res.setBug_id(2);
		dao.insert(res);
	}
}
